package com.lzy.cloud.order.remote;

import com.lzy.cloud.order.request.ticket.train.OrderBookingAppRequest;
import com.lzy.cloud.order.response.ticket.train.TicketTrainResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Description: 火车票接口
 * @Author:   gyl
 * @Date:     2018/7/16 14:59
 */
@FeignClient(name = "lzy-cloud-ticket-train")
public interface TrainApi {

    /**
     * 方法说明：插入火车票信息
     * @date   2018/7/16 15:04
     */
    @RequestMapping(value = "/train/booking/order", method = RequestMethod.POST)
    TicketTrainResponse bookingOrder(@RequestHeader("token") String token, @RequestBody OrderBookingAppRequest request);
}
